<?php

/**
 * Exemples Hoathis_Currency
 *
 * @author      Gregory DARCHE <tetardo@gmail.com>
 * @copyright   Copyright (c) 2009 Gregory DARCHE.
 * @license     http://gnu.org/licenses/gpl.txt GNU GPL
 * @since       PHP 5
 * @package     Hoathis_Currency
 */

error_reporting(E_ALL);

set_include_path('./'            		 . PATH_SEPARATOR .
                 './../Application' 	 . PATH_SEPARATOR .
                 './../Framework/Core/'  . PATH_SEPARATOR .
                 get_include_path());

require_once 'Framework.php';

importModule('Currency.~');


$curr = new Hoathis_Currency();

echo '<p>'.$curr->getName().' ('.$curr->getDate().')</p>';

echo '<p>EUR: '.$curr->EUR.'</p>';
echo '<p>USD: '.$curr->USD.'</p>';

foreach($curr->getCurrencies() AS $k => $v) {
    echo $curr->EUR.' &euro; = '.$v.' '.$k.'<br />';
}
